﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using WindowsLive;

namespace WebRole1
{
   public partial class Site : System.Web.UI.MasterPage
   {
      // Initialize the WindowsLiveLogin module.
      protected static string AppId = Utils.AppId;   //used inside site.Master login control;
      public static string UserId;  //used inside site.Master nugget: <% %>

      protected void Page_Load(object sender, EventArgs e)
      {
         string userId = Utils.GetUserFromCookie();
         if (!string.IsNullOrEmpty(userId))
         {
            UserId = userId;
            LabelCurrentLiveUser.Text = userId;
         }
      }
   }
}
